import request from '@/utils/request'

// 查询仓位分配列表
export function listMstr(query) {
  return request({
    url: '/project/newBm/list',
    method: 'get',
    params: query,
  })
}

// 查询仓位分配详细
export function getMstr(bmId) {
  return request({
    url: '/project/newBm/select/' + bmId,
    method: 'get',
  })
}

// 新增仓位分配
export function addMstr(data) {
  return request({
    url: '/project/newBm',
    method: 'post',
    data: data,
  })
}

// 修改仓位分配
export function updateMstr(data) {
  return request({
    url: '/project/newBm/edit',
    method: 'put',
    data: data,
  })
}

// 删除仓位分配
export function delMstr(bmId) {
  return request({
    url: '/project/newBm/delete/' + bmId,
    method: 'delete',
  })
}

// 导出仓位分配
export function exportMstr(query) {
  return request({
    url: '/project/newBm/export',
    method: 'get',
    params: query,
  })
}

// 导出【请填写功能名称】
export function getUpdateStorage(wldm) {
  return request({
    url: '/project/materiel/getUpdateStorage/' + wldm,
    method: 'get',
  })
}
